﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="lovBeneficiarios.ascx.cs"
    Inherits="SERIX.Controles.lovBeneficiarios" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Src="Navegador.ascx" TagName="Navegador" TagPrefix="uc1" %>
<asp:Button ID="btnLov" runat="server" Text="..." OnClick="btnLov_Click" CausesValidation="False" />
<cc1:ModalPopupExtender ID="Panel1_ModalPopupExtender" runat="server" DynamicServicePath=""
    Enabled="True" TargetControlID="btnLov" PopupControlID="Panel1" DropShadow="True"
    BackgroundCssClass="modalBackground">
</cc1:ModalPopupExtender>
<asp:Panel Style="display:none " ID="Panel1" runat="server" Height="285px" Width="499px"
    BackColor="#CCCCCC" BorderColor="Black" BorderStyle="Solid" BorderWidth="1px">
    <asp:UpdatePanel ID="UpdatePanelLov" runat="server">
        <ContentTemplate>
            <table align="center" border="0" cellpadding="2" cellspacing="0" width="100%">
                <tr id="Draglable" runat="server">
                    <td>
                        <table>
                            <tr>
                                <td style="width: 100%; text-align: left">
                                    &nbsp;<asp:Label ID="lbTitulo" runat="server" Text="Pesquisa de Beneficiários" Font-Bold="True"
                                        ForeColor="Black"></asp:Label>
                                </td>
                                <td>
                                    <asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanelLov">
                                        <ProgressTemplate>
                                            <img src="../Imagens/indicator.white.gif" />
                                        </ProgressTemplate>
                                    </asp:UpdateProgress>
                                </td>
                                <td align="left"  style="height: 16px; text-align: right;">
                                    <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/Imagens/botoes/remove.png"
                                        OnClick="ImageButton1_Click" CausesValidation="False" />
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td align="center" class="grid_titulo">
                        <span style="color: #FFFFFF">Filtrar: </span>
                        <asp:TextBox ID="txtFiltrar" runat="server" MaxLength="55" TabIndex="2" Width="127px"></asp:TextBox>
                        <span style="color: #FFFFFF">&nbsp;por </span>
                        <asp:DropDownList ID="ddlPor" runat="server">
                            <asp:ListItem Value="N">Nome</asp:ListItem>
                            <asp:ListItem Value="C">CPF</asp:ListItem>
                            <asp:ListItem Value="R">RG</asp:ListItem>
                        </asp:DropDownList>
                        &nbsp;<asp:Button ID="btnPequisar" runat="server" CausesValidation="False" Font-Bold="True"
                            OnClick="btnPequisar_Click" TabIndex="5" Text="Pesquisar" Width="80px" />
                        &nbsp;&nbsp;
                    </td>
                </tr>
                <tr>
                    <td class="grid_titulo">
                        <div align="center">
                            <asp:RadioButtonList ID="RadioButtonList1" runat="server" RepeatDirection="Horizontal">
                                <asp:ListItem Selected="True" Value="E">Pela esquerda</asp:ListItem>
                                <asp:ListItem Value="D">Pela direita</asp:ListItem>
                                <asp:ListItem Value="A">Qualquer posição</asp:ListItem>
                            </asp:RadioButtonList>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td align="center" style="color: #000000; height: 125px; vertical-align: text-top">
                        <asp:GridView ID="gridView" runat="server" AutoGenerateColumns="False" CssClass="grid"
                            EmptyDataText="Nenhum registro encontrado." Height="100%" PageSize="5" 
                            Width="100%" onrowdatabound="gridView_RowDataBound1">
                            <AlternatingRowStyle CssClass="row_alter" />
                            <Columns>
                                <asp:BoundField DataField="IDT_BENEF" HeaderText="IDT_BENEF" SortExpression="IDT_BENEF"
                                    Visible="False" />
                                <asp:TemplateField HeaderText="CPF" SortExpression="CPF" ItemStyle-Width="90px">
                                    <ItemTemplate>
                                        <asp:LinkButton ID="LinkButton1" runat="server" Font-Overline="False" 
                                            ForeColor="Black" Width="100%" CausesValidation="False" 
                                            onclick="LinkButton1_Click">LinkButton</asp:LinkButton>
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("CPF") %>'></asp:TextBox>
                                    </EditItemTemplate>
                                    <ItemStyle Width="90px" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="RG" SortExpression="RG" ItemStyle-Width="150px">
                                    <ItemTemplate>
                                        <asp:LinkButton ID="LinkButton2" runat="server" Font-Overline="False" 
                                            ForeColor="Black" Width="100%" CausesValidation="False" 
                                            onclick="LinkButton1_Click">LinkButton</asp:LinkButton>
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <asp:TextBox ID="TextBox3" runat="server" Text='<%# Bind("RG") %>'></asp:TextBox>
                                    </EditItemTemplate>
                                    <ItemStyle Width="150px" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Nome" SortExpression="NOM_BENEF">
                                    <ItemTemplate>
                                        <asp:LinkButton ID="LinkButton3" runat="server" Font-Overline="False" 
                                        onclick="LinkButton1_Click"
                                            ForeColor="Black" Width="100%" CausesValidation="False">LinkButton</asp:LinkButton>
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("NOM_BENEF") %>'></asp:TextBox>
                                    </EditItemTemplate>
                                    <ItemStyle Width="420px" />
                                </asp:TemplateField>
                            </Columns>
                            <EmptyDataRowStyle CssClass="emptyrow" />
                            <FooterStyle CssClass="footer" />
                            <HeaderStyle CssClass="header" />
                            <PagerStyle CssClass="pager" />
                            <RowStyle CssClass="row" />
                        </asp:GridView>
                    </td>
                </tr>
                <tr>
                    <td align="center" style="color: #000000">
                        <uc1:Navegador ID="Navegador1" runat="server" />
                    </td>
                </tr>
                <tr>
                    <td align="center" style="color: #000000">
                        &nbsp;
                    </td>
                </tr>
            </table>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Panel>
